package com.kgc.mall.service;

import com.kgc.mall.pojo.User;

import java.util.List;

public interface UserService {
  List<User> getUserInfoByPage(String loginName,
                               String userName,
                               int pageNum,
                               int pageSize);

  int addUserInfo(User user);

  int updateUserInfo(User user);

  User getUserInfo(int userId);
 //删除用户
  int deleteUserByUid(int userId);

  List<User> getUser(String loginName,String userName);

  List<User> getUserInfoByPre(String loginName,
                               String userName,
                               int pageNum,
                               int pageSize);

  long getCount();
}
